home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 April / macformat-049.iso / mac / Shareware Plus / Developers / dropg++ / INSTALLATION < prev   
Encoding:
Text File  |  1997-02-20  |  2.3 KB  |  62 lines  |  [TEXT/ttxt]

  1. Prerequisites:
  2.  
  3. 68020, 68030, 68040, or PPC macintosh 
  4. (i.e. anything except a mac plus or PB100)
  5. System 7
  6. BBedit Lite or similar program for editing source code
  7. 8 Megs or so available memory (depending on partition size tuning)
  8.  
  9. You will have received this program either as a CD-ROM
  10. already expanded, or as an application dropg++.sea
  11. which you can double click to expand.
  12.  
  13. If you don't trust self-extracting archives, you can use the
  14. freely available program DDexpand to install.
  15.  
  16. In either case you will end up with a top level folder named dropg++
  17.  
  18. Make an alias to dropg++ (single click on folder followed by file/make alias
  19. rename this alias root, and then move it to the preferences folder (inside System Folder)
  20.  
  21. When dropg++ starts up, it reads the preferences folder, and uses the alias named root
  22. to find the installation location (the root of all file name references)
  23.  
  24. It may be necessary to rebuild the desktop at this point
  25. (restart whilst holding down apple and option)
  26.  
  27. open the examples folder, choose a .c or a .cc file
  28. drop it on the gcc icon, and stand well back
  29.  
  30. eventually, if you see no errors, a file will be generated in the source (.c or .cc) 
  31. folder, named a.out, with the application icon. Immediately rename this file
  32. to your chosen name, or else it will be overwritten next time you invoke gcc
  33.  
  34. You can execute this program by dropping a file on it, or by double clicking
  35. and choosing file/open or file/flags followed by execute. In the former case
  36. the file and its current directory will be passed as arguments, otherwise
  37. the flags you type literally will be passed.
  38.  
  39. e.g. to run the program dhry-opt or dhry-nonopt
  40.  
  41. double click
  42. file/flags
  43. type 10000
  44. execute
  45.  
  46. this will run the dhrystone program for 10000 iterations (a benchmark)
  47.  
  48. e.g. to run the program showargs
  49.  
  50. drag any data file onto the showargs icon
  51.  
  52. the program will print up the file name and its size (data fork only) and exit
  53.  
  54. on exit the programs output (anything written to stdout/stderr,cout/cerr
  55. will be copied to the clipboard, so you can view it with edit/show clipboard
  56.  
  57. If you have more than one source file to compile e.g. dhry_1.c dhry_2.c
  58. shift click on them both and drag onto the gcc icon
  59.  
  60. You can customize the operation of gcc by editing the file specs in the
  61. usr:lib:gcc-lib:hp300bsd:2.7.2 folder, but do this at your own risk!
  62.